package com.hxz.graduationdesign.mapper;


import com.hxz.graduationdesign.pojo.entity.Comment;
import com.hxz.graduationdesign.pojo.entity.ReplyComment;
import com.hxz.graduationdesign.pojo.vo.CommentVo;
import com.hxz.graduationdesign.pojo.vo.GenderVo;
import com.hxz.graduationdesign.pojo.vo.LevelVo;
import com.hxz.graduationdesign.pojo.vo.ReplyCommentVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommentMapper {
    int insertComments(List<Comment> comments);

    int insertReplyComments(List<ReplyComment> replyComments);

    List<CommentVo> selectAllComment(@Param("bv")String bv);

    List<ReplyCommentVo> selectAllReplyComment(@Param("bv")String bv, @Param("rid")String rid);

    List<GenderVo> selectGender(String bv);

    List<GenderVo> selectRelyGender(String bv);

    List<LevelVo> selectLevel(String bv);

    List<LevelVo> selectReplyLevel(String bv);

    int deleteByBv(String bv);

    int deleteReplyByBv(String bv);
}
